package com.fong.microservice.producer.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fong.microservice.producer.domain.entity.MsUser;
import com.fong.microservice.producer.service.MsUserService;

@RestController
@RequestMapping( "/user" )
public class MsUserController {

	@Autowired
	private MsUserService userService;

	@RequestMapping( "/list" )
	public List<MsUser> list( ) {
		return userService.getAllUser( );
	}

}
